34
1 cls
2 print
3 print
10 random = 10
20 b = random
30 if b > 10 then b = 10
40 if b = 10 then goto 1000
50 if b > 9 then b = 9
60 if b = 9 then goto 1000
70 if b > 8 then b = 8
80 if b = 8 then goto 1000
90 if b > 7 then b = 7
100 if b = 7 then goto 1000
110 if b > 6 then b = 6
120 if b = 6 then goto 1000
130 if b > 5 then b = 5
140 if b = 5 then goto 1000
150 if b > 4 then b = 4
160 if b = 4 then goto 1000
170 if b > 3 then b = 3
180 if b = 3 then goto 1000
190 if b > 2 then b = 2
200 if b = 2 then goto 1000
210 if b > 1 then b = 1
220 if b = 1 then goto 1000
230 print "WELCOME to NUMBER"
240 print "----GUESSER----"
250 input "Guess the number (1-10) " guess
260 if guess = b then goto 2000
270 print "Nope!"
280 goto 250
1000 goto 230
2000 print "You guessed my number!"
2010 print "Congratulations, you're swell."
